import request from "@/api/index"

export default{
  /**
   * @description: 添加入库 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/warehouse/warehousing/add"
    return request.post(url,params)
  },
  /**
   * @description: 编辑入库 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "warehouse/warehousing/edit"
    return request.post(url,params)
  },
  /**
   * @description: 删除入库 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
   delById(params){
    const url = "warehouse/warehousing/delById"
    return request.get(url,params)
  },
  /**
   * @description: 删除入库 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
  delListById(params){
    const url = "warehouse/warehousing/delListById"
    return request.get(url,params)
  },
  /**
   * @description: 条件查询 *代表必填
   * @param {String/Number} staffId *
   * @return {Object}
   */
  queryByCondition(params){
    const url = "warehouse/warehousing/queryByCondition"
    return request.post(url,params)
  },
  /**
   * @description: 分页查询入库 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "warehouse/warehousing/queryPageByCondition"
    return request.post(url,params)
  },
    //  查询仓库
  queryWareHouse(params) {
    const url = 'warehouse/warehouse/queryByCondition'
    return request.post(url, {
      ...params
    })
   }
}
